SRC = $(wildcard *.c)
OBJ = $(SRC: .c=.o)
BIN = code
FLAG = -o
CC = gcc
CFLAG = -c

$(BIN):$(OBJ)
	$(CC) $(FLAG) $@ $(^) 
%.o:%.c
	$(CC) $(CFLAG) $< 
.PHONY:clean
clean:
	rm -f *.o code

